<?php
	class Content_Model extends CI_Model {

		function __construct(){
			parent::__construct();
		}
		
		function read(){	
			$query = $this->db->get('content');
			return $query->result();
		}
		
		function edit($id){
			$this->db->where('id_content',$id);
			$query=$this->db->get('content');
			return $query->row();
		}
		
		function update($id_content,$data){
			$this->db->where('id_content', $id_content);
			$update = $this->db->update('content', $data);
			return $update;
		}
	}
?>